const net = require('net')

const server = net.createServer()

server.listen(8080,()=>{
    console.log(`http://localhost:8080`)
})
server.on('connection',(socket)=>{
    socket.on('data',(chunk)=>{
        console.log(chunk.toString())
    })
})

